//
//  YZCAFNetwork.h
//  
//
//  Created by 杨智超 on 15/11/6.
//
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSUInteger, YZCResposeStyle) {
    YZCJSON,
    YZCXML,
    YZCData,
};

typedef NS_ENUM(NSUInteger, YZCRequestStyle) {
    RequestJSON,
    RequestString,
    RequestDefault
};

@interface YZCAFNetwork : NSObject

+ (void)getUrl:(NSString *)url
          body:(id)body
      response:(YZCResposeStyle)style
requestHeadFile:(NSDictionary *)handFile
       success:(void (^)(NSURLSessionDataTask *task, id resposeObject))success
       failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure;

+ (void)postUrlString:(NSString *)url
                 body:(id)body
             response:(YZCResposeStyle)style
            bodyStyle:(YZCRequestStyle)bodyStyle
      requestHeadFile:(NSDictionary *)headFile
              success:(void (^)(NSURLSessionDataTask *task, id responseObject))success
              failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure;



@end
